<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Manajemen Produk</title>
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<link rel="stylesheet" type="text/css" href="css/fullscreen.css">
</head>

<body>

    <div class="navbar">
    <div class="navbar-inner">
    <a class="brand" href="#">Dashboard Koperasi</a>
    </div>
    </div>
	        
		
		
		
		<div class="hero-unit">		
			<img src="img/log.jpg"
			<div id="container">
 			 </div>
				<h2>INDONESIA COOPERATIVES IN FARMING</h2>
			</div>
		</div>
			
		<div class="container-fluid">
      <div class="row-fluid">
        <div class="span3">
          <div class="well sidebar-nav">
            <ul class="nav nav-list">
              <li class="nav-header"></li>
              <li class="active"><a href="#">Dashboard</a></li>
              <li><a href="edituser2_view.php">Manajemen Profil</a></li>
              <li><a href="manajemenproduk_view.php">Manajemen Produk</a></li>
              
            </ul>
          </div><!--/.well -->
        </div><!--/span-->
		

        <div class="span9 row-fluid" >
                <h3>Manajemen Produk</h3>
                <p align="right"><a href="insertprod_view.php">+Tambah Produk</a></p>
            	<div class='row-fluid'>
				<ul class='thumbnails'>
				<?php
                include("../config.php");
                $sql = "select * from produk;";
                $records = mysql_query($sql); 
                while($rows = mysql_fetch_array($records)){
				echo"
				<li class='span4'>
				<img src='img/gambar.jpg alt='' width='260' height='180'>
				<div class='caption' align='center'>
				<a href='../Functions/editproduk.php?idprod='.$id.''>" . $rows['NAMAPRODUK'] . "</a>
				</br>
				<div id='example' class='modal hide fade in' style='display: none; '>  
<div class='modal-header'>  
<a class='close' data-dismiss='modal'>×</a>  
<h3>This is a Modal Heading</h3>  
</div>  
<div class='modal-body'>  
<h4>Text in a modal</h4>  
<p>You can add some text here.</p>                
</div>  
<div class='modal-footer'>  
<a href='#' class='btn btn-success'>Call to action</a>  
<a href='#' class='btn' data-dismiss='modal'>Close</a>  

</div>  
</div>
				<a href='#'>Hapus Produk?</a>
                        
									
				</div>
				</li>
				";
				/*echo" " . $rows['NAMAPRODUK'] . "
                        <p align='right'><a href='..'>Ubah</a> <a href='..'>Hapus</a></p>
						
						
						
						
						";*/
                }
                ?>
                </ul>
                </div> 
        	</div>
        </div><!--/span-->
      </div><!--/row-->

      <hr>

      <footer>
        <p>&copy; Company 2012</p>
      </footer>

    </div><!--/.fluid-container-->
</div>
    <script src="http://code.jquery.com/jquery-latest.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/jquery.min.js"></script>
	<script src="http://code.jquery.com/jquery-latest.js"></script>
	<script src="js/bootstrap.min.js"></script>

</body>
</html>